package com.test.jbpm.domain;


import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="t_mydept")
public class Dept {

	private Integer id;
	
	private String name;
	
	private String content;
	
	
	public Dept getParent() {
		return parent;
	}

	public void setParent(Dept parent) {
		this.parent = parent;
	}

	
	public Set<Dept> getChildren() {
		return children;
	}
	
	public void setChildren(Set<Dept> children) {
		this.children = children;
	}

	private Dept parent;
	private Set<Dept> children;
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	//@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	//@Id @GeneratedValue(strategy=GenerationType.AUTO)
	@Id @GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
